From cd1551b1ee0b4452907698217cf789d1f75a3fd9 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 7 May 2015 16:02:39 -0400 Subject: [PATCH] gpg: Fix ot_gpgme_error_to_gio_error() Need to extract the error code from a gpgme_error_t, can't just compare it directly. --- src/libotutil/ot-gpg-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libotutil/ot-gpg-utils.c b/src/libotutil/ot-gpg-utils.c index 88b436f2..d603b09b 100644 --- a/src/libotutil/ot-gpg-utils.c +++ b/src/libotutil/ot-gpg-utils.c @@ -34,7 +34,7 @@ ot_gpgme_error_to_gio_error (gpgme_error_t gpg_error, /* XXX This list is incomplete. Add cases as needed. */ - switch (gpg_error) + switch (gpgme_err_code (gpg_error)) { /* special case - shouldn't be here */ case GPG_ERR_NO_ERROR: -- 2.30.2